<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>资讯列表页</title>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

    <!-- 引入 layui.css -->
    <link rel="stylesheet" href="//unpkg.com/layui@2.6.5/dist/css/layui.css">
</head>
<body>
<ul class="layui-nav">
    <li class="layui-nav-item"><a href="{:url('index')}">综合</a></li>
    {foreach $data as $v}
    <li class="layui-nav-item"><a href="{:url('type')}?id={$v->id}">{$v->type_name}</a></li>
    {/foreach}
</ul>
<div>
    <a href="{:url('create')}">去添加<<<<</a>
</div>
{foreach $data1 as $v}
<div class="card mb-3" style="max-width: 540px;">
    <div class="row no-gutters">
        <div class="col-md-4">
            <img src="" >
        </div>
        <div class="col-md-8">
            <div class="card-body" >
                <h3 class="card-title"><a href="{:url('read')}?a_id={$v->a_id}">{$v->a_title}</a></h3>
                <div style="margin-bottom: 20px;margin-right: 20px;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;"
                     ng-bind-html = "$sce.trustAsHtml(art.content)">
                    <p class="card-text">{$v->a_content}</p>
                </div>

                <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
            </div>
        </div>
    </div>
</div>
{/foreach}
</body>
</html>